import Api from "../apis/Apis";
import Http from "../../utils/http";
import Tools from "../../utils/tools"

const list = (queryParams) => {
    const queryString = Tools.paramsToQueryString(queryParams);
    return Http.get(Api.Card.list+queryString);
}

const statics = () => {
    return Http.get(Api.Card.statics);
}

const bind = (data) => {
    return Http.post(Api.Card.bind,data);
}


const CardService = {
    list,
    statics,
    bind
}

export default CardService;